package com.geline.sqlbackup.bean;

import java.io.Serializable;

public class SequenceInfo implements Serializable {
    private String sequenceOwner = "system";
    // 名称
    private String sequenceName;
    // 最小值
    private Integer minValue = 1;
    // 最大值
    private Long maxValue = 9223372036854775807L;
    // 步长
    private Integer incrementBy = 1;
    // 序列到最大值后循环标志
    private String cycleFlag = "f";  // Y/N
    // 获取序列时是否按顺序给值
    private String orderFlag = "t";
    // 需要不需要使用缓存
    private Integer cacheSize = 1;
    // 序列当前已使用到的值
    private Long lastNumber;

    public SequenceInfo() {
    }

    public String getSequenceOwner() {
        return sequenceOwner;
    }

    public void setSequenceOwner(String sequenceOwner) {
        this.sequenceOwner = sequenceOwner;
    }

    public String getSequenceName() {
        return sequenceName;
    }

    public void setSequenceName(String sequenceName) {
        this.sequenceName = sequenceName;
    }

    public Integer getMinValue() {
        return minValue;
    }

    public void setMinValue(Integer minValue) {
        this.minValue = minValue;
    }

    public Long getMaxValue() {
        return maxValue;
    }

    public void setMaxValue(Long maxValue) {
        this.maxValue = maxValue;
    }

    public Integer getIncrementBy() {
        return incrementBy;
    }

    public void setIncrementBy(Integer incrementBy) {
        this.incrementBy = incrementBy;
    }

    public String getCycleFlag() {
        return cycleFlag;
    }

    public void setCycleFlag(String cycleFlag) {
        this.cycleFlag = cycleFlag;
    }

    public String getOrderFlag() {
        return orderFlag;
    }

    public void setOrderFlag(String orderFlag) {
        this.orderFlag = orderFlag;
    }

    public Integer getCacheSize() {
        return cacheSize;
    }

    public void setCacheSize(Integer cacheSize) {
        this.cacheSize = cacheSize;
    }

    public Long getLastNumber() {
        return lastNumber;
    }

    public void setLastNumber(Long lastNumber) {
        this.lastNumber = lastNumber;
    }
}
